Feature/45 coverage matrix generator service#46
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (57)
WalkthroughThis PR adds a new ChangesCoverage Matrix Service
User Story Schema Migration
Estimated code review effort: 4 (Complex) | ~75 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant CoverageMatrixCLI
participant Loader
participant Matcher
participant SummaryModule
participant OutputFile
User->>CoverageMatrixCLI: coverage-matrix --doc-input --tests-input --output
CoverageMatrixCLI->>Loader: load_doc_input / load_tests_input
Loader-->>CoverageMatrixCLI: doc groups, test items
CoverageMatrixCLI->>Matcher: build_coverage_matrix(doc, tests)
Matcher->>SummaryModule: compute_us_summary / compute_summary
SummaryModule-->>Matcher: Summary / TopSummary
Matcher-->>CoverageMatrixCLI: CoverageMatrix
CoverageMatrixCLI->>OutputFile: write coverage-matrix.json
CoverageMatrixCLI-->>User: success or fail_under error
Possibly related PRs
Suggested reviewers: Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Introduced a new JSON schema file for doc-source v1.0.0 to define the structure and requirements for the doc-source envelope. - Implemented schema validation in `schema_validation.py` to ensure that inputs conform to the defined schema before processing. - Added functions to validate the doc-source envelope and handle validation errors appropriately.
Description
This PR introduces JSON schema validation for the doc-source envelope in the Coverage Matrix Generator service. It adds a new schema definition for doc-source v1.0.0 and implements schema validation logic to ensure all inputs conform to the defined structure before processing.
The changes streamline data consistency across the toolkit and reduce fixture complexity through schema-compliant test data updates.
Changes
doc-source-v1.0.0-schema.json)schema_validation.py)Release Notes:
Closes #45
Summary by CodeRabbit
New Features
coverage-matrixCLI command to generate coverage reports and enforce an optional minimum coverage threshold.Bug Fixes
Documentation